class TestUploadController < ApplicationController

def get
  @picture = Picture.new
end

def show
   @picture = Picture.find(params[:id])
end

def save
  @picture = Picture.new(params[:picture])
  if @picture.save
  redirect_to(:action => 'show', :id => @picture.id)
  else
  render(:action => :get)
  end
end
end
